package com.job.Gai_Yian.Homework0711;

/**
 * @author Gai_Yian
 * @version 1.0
 * @since 2022-07-12 12:13:24
 */
public class TextPremier {
    public static void main(String[] args) {
        Premier premier1=Premier.getInstance();
        Premier premier2=Premier.getInstance();
        Premier premier3=Premier.getInstance();
        System.out.println(premier1==premier2 && premier1==premier3);

        premier1.setName("老李");
        System.out.println(premier2.getName());
        System.out.println(premier3.getName());
    }
}
